﻿using System.Linq;
using Microsoft.SharePoint.Administration;
using Trentacular.SharePoint.Deployment.Model;
using Trentacular.SharePoint.Deployment.Util;

namespace Trentacular.SharePoint.Deployment.Data.Proxy
{
    //public class WebApplicationDeployedSolutionsLazyInitializer : BaseDomainListLazyInitializer<WebApplication, Solution>
    //{
    //    protected override object InitializeTarget()
    //    {
    //        return Owner.Farm.Solutions
    //            .Where(s => s.Deployed &&
    //                    (
    //                        s.DeploymentState == SPSolutionDeploymentState.GlobalDeployed ||
    //                        s.DeployedWebApplications.Contains(Owner)
    //                    )
    //                )
    //            .ToVirtualList();
    //    }
    //}
}
